home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Found / FWStream / Sources / FWBufSin.cpp < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.5 KB  |  47 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWBufSin.cpp
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #include "FWFound.hpp"
  11.  
  12. #ifndef FWBUFSIN_H
  13. #include "FWBufSin.h"
  14. #endif
  15.  
  16. #ifdef FW_BUILD_MAC
  17. #pragma segment File
  18. #endif
  19.  
  20.  
  21. #if defined(__MWERKS__) && GENERATING68K
  22. // A hack to work around a bug
  23. #pragma import list somNewObjectInstance
  24. #endif
  25.  
  26. //========================================================================================
  27. // CLASS FW_PBufferedSink
  28. //========================================================================================
  29.  
  30. //----------------------------------------------------------------------------------------
  31. //    FW_PBufferedSink::FW_PBufferedSink
  32. //----------------------------------------------------------------------------------------
  33. FW_PBufferedSink::FW_PBufferedSink(Environment* ev, FW_ORandomAccessSink* theSink, long capacity) :
  34.     FW_PRandomAccessSink(ev, new FW_OBufferedSink())
  35. {
  36.     ((FW_OBufferedSink*)GetRep())->InitFromSink(ev, theSink, capacity);
  37. }
  38.  
  39. //----------------------------------------------------------------------------------------
  40. //    FW_PBufferedSink::~FW_PBufferedSink
  41. //----------------------------------------------------------------------------------------
  42. FW_PBufferedSink::~FW_PBufferedSink()
  43. {
  44. }
  45.  
  46.  
  47.